﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using WpfApp23.Models;

namespace WpfApp23.ViewModel
{
    class UserViewModel
    {
        public User User { get; set; } = new User();

        public ICommand Login { get; set; } =new  LoginCommand(); 
    }


    public class LoginCommand : ICommand
    {
        public event EventHandler? CanExecuteChanged;

        public bool CanExecute(object? parameter)
        {
            return true;
        }

        public void Execute(object? parameter)
        {
            User? user = (User)parameter;
        }
    }
}
